x86: dynamically attach/detach CMT service for a guest
authorDongxiao Xu <dongxiao.xu@intel.com>
Mon, 6 Oct 2014 10:39:11 +0000 (12:39 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 6 Oct 2014 10:39:11 +0000 (12:39 +0200)
commitc80c2b4bf07212485a9dcb27134f659c741155f5
tree6259d708a619eb719236806ef92817207b550fb8
parent021871770023700a30aa7e196cf7355b1ea4c075
x86: dynamically attach/detach CMT service for a guest

Add hypervisor side support for dynamically attach and detach
Cache Monitoring Technology(CMT) services for a certain guest.

When attach CMT service for a guest, system will allocate an
RMID for it. When detach or guest is shutdown, the RMID will be
recycled for future use.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Chao Peng <chao.p.peng@linux.intel.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
xen/arch/x86/domain.c
xen/arch/x86/domctl.c
xen/arch/x86/psr.c
xen/include/asm-x86/domain.h
xen/include/asm-x86/psr.h
xen/include/public/domctl.h